<?php

namespace Admin\Form;

use Zend\Form\Annotation;
use Admin\Form\ProfileForm;

/**
 * @Annotation\Hydrator("Zend\Stdlib\Hydrator\ObjectProperty")
 * @Annotation\Name("form_new_reader")
 */
class ReaderForm extends ProfileForm {

    /**
     * @Annotation\Type("Zend\Form\Element\Text")
     * @Annotation\Required({"required":"true" })
     * @Annotation\Filter({"name":"StripTags"})
     * @Annotation\Filter({"name":"StringTrim"})
     * @Annotation\Validator({"name":"StringLength", "options":{"min":"1","max":"30"}})
     * @Annotation\Validator({"name":"Regex", "options":{"pattern":"/^[0-9]/"}})
     * @Annotation\Options({"label":"Mã bạn đọc:"})
     * @Annotation\Attributes({"id":"cardBarcode","class":"cardBarcode"})
     */
    public $cardBarcode;

    /**
     * @Annotation\Type("Zend\Form\Element\Select")
     * @Annotation\Required({"required":"true" })
     * @Annotation\Filters({"name":"StripTags"},{"name":"StringTrim"}}) 
     * @Annotation\Options({"label":"Lớp/Đơn vị:"})
     * @Annotation\Attributes({"id":"classID","class":"classID"})
     */
    public $classID;

    /**
     * @Annotation\Type("Zend\Form\Element\Select")
     * @Annotation\Required({"required":"true" })
     * @Annotation\Filter({"name":"StripTags"})
     * @Annotation\Options({"label":"Tình Trạng:",
     *                      "value_options" : {"0":"Đăng ký mới","1":"Tạm Khóa","2":"Lưu Thông"}})
     * @Annotation\Attributes({"value":"0","id":"isActive","class":"isActive"})
     */
    public $isActive;

    /**
     * @Annotation\Required(false)
     * @Annotation\Attributes({"type":"hidden"})
     * @Annotation\Attributes({"id":"roleID","class":"roleID"})
     */
    public $roleID;

    /**
     * @Annotation\Type("Zend\Form\Element\Select")
     * @Annotation\Required(false)
     * @Annotation\Filter({"name":"StripTags"})
     * @Annotation\Options({"label":"Khóa học:"})
     * @Annotation\Attributes({"value":"0","id":"yearLearn","class":"yearLearn"})
     */
    public $yearLearn;
}

